import { consulateHttp, validatorHttp } from '../index';
export function getAllHospList() {
  return consulateHttp.request({
    method: 'GET',
    url: '/options/hosp'
  });
}
export function getHospList() {
  return consulateHttp.request({
    method: 'GET',
    url: '/hospital/option/branchHospList'
  });
}
export function getTeamList(params: { hospCode: string }) {
  return consulateHttp.request({
    method: 'GET',
    url: '/baseTeam/comboBox',
    params
  });
}
export function getQcDrList() {
  return consulateHttp.request({
    method: 'GET',
    url: '/options/list/qcDrByCurrentHospId'
  });
}
export function getSexList() {
  return consulateHttp.request({
    method: 'GET',
    url: '/options/enum/sex'
  });
}

export function getFinishDrList(params: {
  startDate: string, endDate: string
}) {
  return consulateHttp.request({
    method: 'GET',
    url: '/options/listFinishDr',
    params
  });
}
export function getKeywordList() {
  return consulateHttp.request({
    method: 'GET',
    url: '/options/enum/keywordType',
  });
}
export function getEquipList(params: { hospCode: string }) {
  return consulateHttp.request({
    method: 'GET',
    url: '/options/hospital/listEquipment',
    params
  });
}
export function getDegreeList() {
  return consulateHttp.request({
    method: 'GET',
    url: '/options/enum/degree',
  });
}
export function getLevelList() {
  return consulateHttp.request({
    method: 'GET',
    url: '/user/enum/userLevel',
  });
}
export function getDeptList(params: { hospKey: string }) {
  return consulateHttp.request({
    method: 'GET',
    url: '/options/listDeptByHospKey',
    params
  });
}

export function getPartList() {
  return consulateHttp.request({
    method: 'GET',
    url: '/options/enum/partCode',
  });
}
export function getValidExcludeList(params: { hospId: string }) {
  return consulateHttp.request({
    method: 'GET',
    url: '/validExclude/list',
    params
  });
}
export function getWarnLevel() {
  return validatorHttp.request({
    method: 'GET',
    url: '/option/listWarnLevel',
  });
}
export function getCharPosition() {
  return validatorHttp.request({
    method: 'GET',
    url: '/option/listCharacterPosition',
  });
}